package com.szu.subject.domains;

import java.time.DayOfWeek;

/**
 * 上课时间
 * 
 * @author ShenXiaolin
 *
 */
public class ClassTime extends BaseModel {
	private int dayOfWeek;// 星期几
	private int section;// 第几节课
	private int type;// 0：普通，1：单周，2：双周

	public int getDayOfWeek() {
		return dayOfWeek;
	}

	public void setDayOfWeek(int dayOfWeek) {
		this.dayOfWeek = dayOfWeek;
	}

	public int getSection() {
		return section;
	}

	public void setSection(int section) {
		this.section = section;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public boolean equals(ClassTime time){
		if(time.getId().equals(getId())){
			return true;
		}
		else {
			return false;
		}
	}
	
	public int hashcode(){
		return super.hashCode();
	}

}
